<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图片上传</title>
    <script src="/node_modules/jquery/dist/jquery.min.js"></script>
</head>
<body>
    <h2>上传单个文件</h2>
    <form method="post" enctype="multipart/form-data" action="/singlefileupload">
        <!-- // name的属性值一定要和后台中定义的参数相同 -->
        <input type="file" name="photo">
        <input type="submit" value="单个文件上传">
    </form>
    <h2>上传多个文件</h2>
    <form method="post" enctype="multipart/form-data" action="/arrayfileupload">
        <!-- // name的属性值一定要和后台中定义的参数相同 -->
        <input type="file" name="photos" multiple>
        <input type="submit" value="多个文件上传">
    </form>
</body>
</html>